package com.bwf.lgqingdan.mvp.model;

import com.bwf.lgqingdan.entity.ResponseHotKeywords;

import java.util.List;

/**
 * Created by Administrator on 2016/11/19.
 */

public interface SearchModel {
    void loadHotSearchKeys(Callback callback);
    void loadHistorySearchKeywords(Callback callback);

    void addHistoryKeyword(String keyword,Callback callback);

    void clearHistoryKeywords();


    public interface Callback{
        void loadHotSearchKeys(List<ResponseHotKeywords.DataBean.KeywordsBean> keywords);

        void loadFailed(String failedMsg);

        void loadHistorySearchKeywordsSuccess(List<String> historyKeywords);

        void refreshHistoryKeywords(List<String> strings);
    }
}
